package com.findmeastore.enums;

public enum Status {
	ACTIVE("Active"), INACTIVE("In Active"), DELETED("Deleted");
	
	private String displayValue;
	
	private Status(String displayValue) {
		this.displayValue = displayValue;
	}
	
	public String getDisplayValue() {
		return this.displayValue;
	}
	
	public static Status getByDisplayValue(String displayValue){
		Status status = null;
		for(Status stat : Status.values()) {
			if(stat.displayValue.equalsIgnoreCase(displayValue)) {
				return stat;
			}
		}
	  	return status;
	}
}
